<template>
  <div class="blackstyle">
    <div class="title">{{ datas.text }}</div>
    <el-form :model="datas" label-width="120px">
      <el-form-item label="背景颜色">
        <el-color-picker v-model="datas.backgroundColor" />
      </el-form-item>
      <el-form-item label="组件高度">
        <el-slider :max="200" v-model="datas.height" />
      </el-form-item>
    </el-form>
  </div>
</template>

<script lang="ts" setup name="blackstyle">
import { toRefs } from "vue";
const props = defineProps({
  datas: {
    type: Object
  }
});
const { datas } = toRefs(props);
</script>

<style scoped lang="scss">
.title {
  padding: 5px;
  margin-bottom: 15px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  border-left: 4px solid var(--el-color-primary);
}
</style>
